{include file="public_head" /}

<!-- datatables -->
<link href="__STATIC__/js/datatables/jquery.dataTables.min.css" rel="stylesheet" type="text/css"/>
<!-- Select2 -->
<link href="__STATIC__/css/select/select2.min.css" rel="stylesheet">
<!-- chk_3 -->
<link href="__STATIC__/css/chk_3.css" rel="stylesheet" type="text/css"/>

<body class="nav-md">

<div class="container body">


    <div class="main_container">

        {include file="public_sidebar,public_nav" /}


        <!-- page content -->
        <div class="right_col" role="main">
            <div class="">
                <div class="page-title">
                    <div class="title_left">
                        <h3>
                            抽奖纪录管理
                        </h3>
                    </div>
                </div>
                <div class="clearfix"></div>

                <div class="row">

                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel">
                            <div class="x_title">
                                <h2>{$mate_title}</h2>
                            </div>
                            <div class="x_content">
                                <form name="form" id="form" method="get" action="">


                                    <table class="table table-striped table-bordered">
                                        <thead>
                                        <tr>
                                            <!--<th>ID</th>-->
                                            <th>中奖商品名称</th>
                                            <!--<th>中奖等级</th>-->
                                            <th>图片</th>
                                            <th>中奖人信息</th>
                                            <th>兑奖时间</th>
                                            <th>查看</th>
                                        </tr>
                                        </thead>

                                        <tbody>
                                        {empty name="data"}
                                        <tr>
                                            <td colspan="10">
                                                <div style='font-size:24px;margin:30px 0;'>没有找到记录</div>
                                            </td>
                                        </tr>
                                        {/empty}
                                        {volist name="data" id="item"}
                                        <tr>
                                            <td>{$item.title}</td>

                                            <td align="center">
                                                <a path="__PUBLIC__/{$item.picUrl}" class="preview">
                                                    <img id="imgShow" src="__PUBLIC__/{$item.picUrl|default=''}" height="65" onerror="this.src='__STATIC__/images/add_img.png'"/>
                                                </a>
                                            </td>
                                            <td>{$item.Member.username}/{$item.Member.nickname}</td>
                                            <td>{$item.create_time}</td>
                                            <td class="operate">

                                                <div>
                                                    <a href="{:url('DrawGoods/update', ['order_id' => $item['id']])}"
                                                       class="label label-primary">
                                                        <span class="fa fa-pencil"></span>&nbsp;&nbsp;查 看
                                                    </a>
                                                </div>
                                            </td>
                                        </tr>
                                        {/volist}
                                    </table>
                                    <!-- 分页 -->
                                    <div style="float: right;margin-top: -30px;">{$data->render()}</div>
                                </form>
                            </div>
                        </div>
                    </div>

                </div>
            </div>

        </div>
        <!-- /page content -->
    </div>

</div>

{include file="public_foot" /}
<!--select-->
<script src="__STATIC__/js/select/select2.full.min.js"></script>
<!-- public -->
<script src="__STATIC__/js/public.js"></script>
<!-- layer -->
<script src="__STATIC__/js/layer.js"></script>
